import java.io.File;

public abstract class ProjectCreator {

    private String srcRootDir = null;
    
    private MakeParam makeParam = null;
    
    private String projectRootDir = null;
    
    public ProjectCreator(String srcRootDir, MakeParam makeParam, String projectRootDir) {
        if(!srcRootDir.endsWith(File.separator)) {
            srcRootDir = srcRootDir + File.separator;
        }
        this.srcRootDir = srcRootDir;
        this.makeParam = makeParam;
        this.projectRootDir = projectRootDir;
    }
    
    public String getSrcRootDir() {
        return srcRootDir;
    }

    public void setSrcRootDir(String srcRootDir) {
        this.srcRootDir = srcRootDir;
    }

    public MakeParam getMakeParam() {
        return makeParam;
    }

    public void setMakeParam(MakeParam makeParam) {
        this.makeParam = makeParam;
    }

    public String getProjectRootDir() {
        return projectRootDir;
    }

    public void setProjectRootDir(String projectRootDir) {
        this.projectRootDir = projectRootDir;
    }

    public abstract void create() throws Exception;
}
